import {Method, Request} from "@/types/utils";
import {ReactNode} from "react";

export interface RequestProps<D, P> extends Request<D, P> {
    method?: Method;
    onSuccess?: (data: D ) => void;
    onError?: (err: any) => void;
    children: (data: D | null, isError: boolean, loading: boolean) => ReactNode;
}